package com.ruoyi.medical.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.math.BigDecimal;

/**
 * 工程师成本核算对象 meioms_engineer_cost
 * 
 * @author ruoyi
 * @date 2025-12-03
 */
@TableName("meioms_engineer_cost")
public class MeiomsEngineerCost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 成本ID */
    @TableId
    private Long costId;

    /** 工程师ID */
    @Excel(name = "工程师ID")
    private Long engineerId;

    /** 年月（格式：YYYYMM） */
    @Excel(name = "年月")
    private String yearMonth;

    /** 维修数量 */
    @Excel(name = "维修数量")
    private Integer repairCount;

    /** 总金额 */
    @Excel(name = "总金额", width = 30, scale = 2)
    private BigDecimal totalAmount;

    /** 创建时间 */
    private Date createTime;

    /** 更新时间 */
    private Date updateTime;

    public void setCostId(Long costId)
    {
        this.costId = costId;
    }

    public Long getCostId()
    {
        return costId;
    }
    public void setEngineerId(Long engineerId)
    {
        this.engineerId = engineerId;
    }

    public Long getEngineerId()
    {
        return engineerId;
    }
    public void setYearMonth(String yearMonth)
    {
        this.yearMonth = yearMonth;
    }

    public String getYearMonth()
    {
        return yearMonth;
    }
    public void setRepairCount(Integer repairCount)
    {
        this.repairCount = repairCount;
    }

    public Integer getRepairCount()
    {
        return repairCount;
    }
    public void setTotalAmount(BigDecimal totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount()
    {
        return totalAmount;
    }
    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public Date getCreateTime()
    {
        return createTime;
    }
    public void setUpdateTime(Date updateTime)
    {
        this.updateTime = updateTime;
    }

    public Date getUpdateTime()
    {
        return updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("costId", getCostId())
            .append("engineerId", getEngineerId())
            .append("yearMonth", getYearMonth())
            .append("repairCount", getRepairCount())
            .append("totalAmount", getTotalAmount())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
